<{include file="top.html"}>
</head>
<body>
<div class="xy-panel">
    <div class="xy-panel-top">
        <div class="xy-titlebar">
            <div class="xy-titlebar-left">
                <a class="insertBefore_left_arrow_gray" href="javascript:void(0);"></a>
            </div>
            <div class="xy-titlebar-title">积分抽奖</div>
            <div class="xy-titlebar-right"></div>
        </div>
    </div>
    <div class="xy-panel-content" style="bottom:0;">
        <div class="xy-row vDirectionRow">
            <a href="<{U('Point/pointDetail')}>"><dl class="illustrate illustrate-1"><img src="<{$preStaticUrl}>Wap/images/integration-1.png">我的积分：<{$userinfo.point}>分</dl></a>
            <{if $data}>
                <ul class="Myrecord">
                    <{include file="PointLottery/recordMore.html"}>
                </ul>
                <dl class="moreshare">没有更多啦</dl>
            <{else}>
                <P>您还没有积分抽奖记录哦，快去看看吧</P>
            <{/if}>
        </div>
    </div>
</div>




<{include file="signBody.html"}>

</body>
</html>
<script src="<{$preStaticUrl}>Wap/js/flexible.js"></script>
<script type="text/javascript" src="<{$preStaticUrl}>Wap/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="<{$preStaticUrl}>Wap/js/nav.js"></script>
<script type="text/javascript">
    var loadMore = "<{U('PointLottery/recordMore')}>";
    var page = 2;
    var loadFlag = 1;
    $(function(){
        $('.xy-panel-content').scroll(function(){
            //当内容加载至底部时加载新的内容
            if ($(this).scrollTop() + $(window).height() + 20 >= $(document).height() && $(this).scrollTop() > 20){
                if(loadFlag){
                    loadFlag = 0;
                    $.getJSON(loadMore,{page:page},function(data){
                        if(data.status != 0){
                            layer.msg("数据获取失败，请稍后重试或联系管理员解决！");
                        }else{
                            ++page;
                            $(".Myrecord").append(data.dataHtml);
                            if(data.isPage) loadFlag=1;
                        }
                    });
                }
            }

        });
    });
</script>

